//
//  YWEquipment.h
//  maintain
//
//  Created by 郑想 on 15/10/26.
//  Copyright © 2015年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface qrcodeJson : NSObject
/**二维码Id*/
@property (nonatomic, copy) NSString* qrcodeId;
/**GPS地址信息*/
@property (nonatomic, copy) NSString* locationText;
/**经纬度*/
@property (nonatomic, copy) NSString* coordinate;
@end

@interface YWMeterProperty : NSObject
/**能源仪表扩展属性Id*/
@property (nonatomic, assign) NSInteger meterPropertyId;
/**倍率*/
@property (nonatomic, assign) float rate;
/**房号*/
@property (nonatomic, copy) NSString* place;
/**单位名称*/
@property (nonatomic, copy) NSString* companyName;
/**关联设备ID*/
@property (nonatomic, copy) NSString* equipmentId;
@end

@interface YWEquipmentInitialParameter : NSObject
/**设备初始化参数Id*/
@property (nonatomic, assign) NSInteger propertyId;
/**参数名称*/
@property (nonatomic, copy) NSString* propertyName;
/**参数值*/
@property (nonatomic, copy) NSString* propertyValue;
/**状态*/
@property (nonatomic, assign) NSInteger status;
/**是否必填*/
@property (nonatomic, assign) NSInteger required;
/**更新时间*/
@property (nonatomic, assign) NSTimeInterval updateTime;
/**创建时间*/
@property (nonatomic, assign) NSTimeInterval createTime;
/**关联设备ID*/
@property (nonatomic, copy) NSString* equipmentId;
@end

@interface YWEquipment : NSObject
/**设备ID*/
@property (nonatomic, copy) NSString* equipmentId;
/**自编码*/
@property (nonatomic, copy) NSString* ownCode;
/**使用年限*/
@property (nonatomic, assign) NSInteger durableYears;
/**生产日期*/
@property (nonatomic, assign) NSTimeInterval produceDate;
/**安装日期*/
@property (nonatomic, assign) NSTimeInterval installDate;
/**设备名称*/
@property (nonatomic, copy) NSString* equipmentName;
/**出厂编号*/
@property (nonatomic, copy) NSString* factoryCode;
/**设备型号*/
@property (nonatomic, copy) NSString* model;
/**采购日期*/
@property (nonatomic, assign) NSTimeInterval buyDate;
/**设备类型ID*/
@property (nonatomic, assign) NSInteger equipmentTypeId;
/**层位置ID*/
@property (nonatomic, assign) NSInteger locationId;
/**楼层ID*/
@property (nonatomic, assign) NSInteger floorId;
/**楼栋ID*/
@property (nonatomic, assign) NSInteger apartmentId;
/**楼盘ID*/
@property (nonatomic, copy) NSString* buildingId;
/**厂商ID*/
@property (nonatomic, assign) NSInteger manufacturerId;
/**厂商名称*/
@property (nonatomic, copy) NSString* factoryName;
/**二维码Id*/
@property (nonatomic, copy) NSString* qrcodeId;
/**二维码Id*/
@property (nonatomic, strong) qrcodeJson* qrcode;
/**GPS地址信息*/
@property (nonatomic, copy) NSString* locationText;
/**经纬度*/
@property (nonatomic, copy) NSString* coordinate;
/**设备的图片*/
@property (nonatomic, strong) NSArray *pictures;
/**能源仪表扩展属性*/
@property (nonatomic, strong) YWMeterProperty *meterProperty;
/**设备的初始参数*/
@property (nonatomic, strong) NSArray *properties;

//-----做任务时关联使用
/**做任务的图片数组*/
@property (nonatomic, strong) NSArray* totalImageNameArray;
/**做任务的时候填写的备注说明*/
@property (nonatomic, copy) NSString* psText;
/**运行参数的数组*/
@property (nonatomic, strong) NSArray *runTimeParameterArray;
@end

@interface YWShortEquipment : NSObject
/**设备ID*/
@property (nonatomic, copy) NSString* equipmentId;
/**设备名称*/
@property (nonatomic, copy) NSString* equipmentName;
@end

@interface YWQrcodeEquipmentInfo : NSObject
/**设备数量*/
@property (nonatomic, assign) NSInteger equipmentCount;
/**设备类型ID*/
@property (nonatomic, assign) NSInteger equipmentTypeId;
/**二维码Id*/
@property (nonatomic, copy) NSString* qrcodeId;
/**层位置Id*/
@property (nonatomic, assign) NSInteger locationId;
@end
